#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/gaojian/kc++/configtest/src/connectiondialogbase.ui'
**
** Created: 二  9月 4 22:51:25 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.7   edited Aug 31 2005 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "connectiondialogbase.h"

#include <qvariant.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a Form1 as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
ConnectionDialogBase::ConnectionDialogBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "Form1" );

    buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setGeometry( QRect( 20, 10, 200, 100 ) );

    radioButton1 = new QRadioButton( buttonGroup1, "radioButton1" );
    radioButton1->setGeometry( QRect( 20, 20, 151, 21 ) );

    radioButton2 = new QRadioButton( buttonGroup1, "radioButton2" );
    radioButton2->setGeometry( QRect( 20, 60, 101, 21 ) );

    buttonGroup2 = new QButtonGroup( this, "buttonGroup2" );
    buttonGroup2->setGeometry( QRect( 20, 120, 200, 110 ) );

    textLabel1 = new QLabel( buttonGroup2, "textLabel1" );
    textLabel1->setGeometry( QRect( 10, 20, 70, 30 ) );

    textLabel2 = new QLabel( buttonGroup2, "textLabel2" );
    textLabel2->setGeometry( QRect( 10, 60, 70, 40 ) );

    lineEdit1 = new QLineEdit( buttonGroup2, "lineEdit1" );
    lineEdit1->setGeometry( QRect( 90, 30, 101, 23 ) );

    lineEdit2 = new QLineEdit( buttonGroup2, "lineEdit2" );
    lineEdit2->setGeometry( QRect( 90, 70, 101, 23 ) );
    languageChange();
    resize( QSize(277, 267).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    textLabel1->setBuddy( lineEdit1 );
    textLabel2->setBuddy( lineEdit2 );
    connect( radioButton1, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) );
    connect( radioButton2, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) );
    connect( lineEdit1, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) );
    connect( lineEdit2, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) );
}

/*
 *  Destroys the object and frees any allocated resources
 */
ConnectionDialogBase::~ConnectionDialogBase()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ConnectionDialogBase::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    buttonGroup1->setTitle( tr2i18n( "Connetion Options" ) );
    radioButton1->setText( tr2i18n( "NetCom" ) );
    radioButton1->setAccel( QKeySequence( QString::null ) );
    radioButton2->setText( tr2i18n( "TeleCom" ) );
    radioButton2->setAccel( QKeySequence( QString::null ) );
    buttonGroup2->setTitle( tr2i18n( "User Options" ) );
    textLabel1->setText( tr2i18n( "Name:" ) );
    textLabel2->setText( tr2i18n( "PassWord:" ) );
}
void ConnectionDialogBase::slotChanged()
{
    qWarning( "TranslateDialogBase::slotChanged(): Not implemented yet" );
}
#include "connectiondialogbase.moc"
